package Frame;

import FCRendering.FCRMaster;

import javax.swing.*;
import java.awt.*;

public class FCGameMainFrame extends JFrame {
    private int winWidth;
    private int winHeight;
    private Image image = Toolkit.getDefaultToolkit().getImage("./material/icon/icon.png");
    public FCGameMainFrame() {
        winWidth =640;
        winHeight =360;
//        winWidth =960;
//        winHeight =573;
        setBounds(0, 0, winWidth, winHeight);
        setResizable(true);

        setLayout(null);
        setIconImage(image);
        setUndecorated(true);//false 就是有拖拉窗口
       getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
       // setCursor(Toolkit.getDefaultToolkit().createCustomCursor(cur, new Point(16, 4),"stick"));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocationRelativeTo(null);

        FCGameFrame fcGameFrame = new FCGameFrame();
        fcGameFrame.setBounds(0,0,winWidth,winHeight);
        this.add(fcGameFrame);
        setVisible(true);
    }
}
